Chip stocks, once a hot favorite among investors, are doing poorly this year .
But BofA says that despite consumer demand remaining under pressure, the "bull case for semis is also compelling."
Here are some themes that chip stocks could ride on, says the bank, which also picked names to buy.
BofA picked these stocks that it said have "best-in-class" 30% free cash flow margins, with 1.8% dividend yield: Analog Devices – its top pick, and Broadcom .
Compelling valuations The bank says semiconductor capital equipment stocks "provide an ideal mix of compelling valuations," with about 14 to 15 times forward price-to-earnings.